package com.ithe.shopweb.mapper;

import com.ithe.shopweb.pojo.resp.OfferResp;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PersonMapper {

    List<OfferResp> personTable(String offerUser, String offerID, Integer pageNum, Integer pageSize);

    List<OfferResp> cartTable(String cartUser, String offerID, Integer pageNum, Integer pageSize);

    List<OfferResp> recordTable(String cartUser, String offerID, Integer pageNum, Integer pageSize);

    String nameTransform(String cartUser);

    List<OfferResp> offerAll(String offerUser, String offerID);

    List<OfferResp> cartAll(String cartUser, String offerID);

    List<OfferResp> recordAll(String cartUser, String offerID);

    Integer offerDelete(String offerID);

    Integer cartDelete(String offerID);

    Integer cartBuy(String offerID, String offerImage, String offerName,
                    String offerStyle, String offerState, String offerLocal,
                    String offerDegree, Double finalPrice, String userLocal, String offerUser, String cartUser);

    Integer offerAdd(String offerID, String offerImage, String offerName,
                     String offerStyle, Double offerPrice, String offerLocal,
                     String offerDiscount, String offerDegree, Double finalPrice, String offerUser);

}
